<template>
  <div>
    <div class="top">
      <el-input
        size="medium"
        placeholder="关键字搜索"
        suffix-icon="el-icon-search"
        style="width:200px;height: 36px;"
      >
      </el-input>
      <el-button round style="width: 68px;height: 36px;font-size: 14px;float: right;margin-right: 30px;">列</el-button>
    </div>
    <div class="bottom">
      <el-table ref="table" :data="tableData" size="small" style="width: 100%;">
        <el-table-column type="selection" width="55"></el-table-column>
        <el-table-column prop="id" width="159" label="医生编号"></el-table-column>
        <el-table-column prop="clinicNames[0]" width="159" label="所在诊所">
          <template slot-scope="scope">
            <a
              style="color: #719DC9;text-decoration:underline"
              @click="clinicDetail(scope.row)"
            >{{ scope.row.clinicNames[0] }}</a>
          </template>
        </el-table-column>
        <el-table-column prop="doctorName" width="159" label="医生姓名"></el-table-column>
        <el-table-column prop="gender" width="159" label="医生性别"></el-table-column>
        <el-table-column prop="professional" width="159" label="医生背景"></el-table-column>
        <el-table-column prop="level" width="159" label="罗慕认证"></el-table-column>
        <el-table-column prop="practiceYear" width="159" label="从医时间"></el-table-column>
      </el-table>
      <!--<pagination></pagination>-->
    </div>
  </div>
</template>

<script>
// import pagination from '@crud/Pagination';
import { docQuery } from '@/api/oper';
export default {
  name: 'DoctorList',
  components: {
    // pagination
  },
  data() {
    return {
      tableData: []
    };
  },
  created() {
    docQuery().then(res => {
      console.log(res.content);
      this.tableData = res.content;
    });
  }
};
</script>

<style scoped>
  .top {
    margin: 30px 0px 20px 30px;
  }
</style>
